@extends('layout.home')
<style>
		.login{
			background-image:url('/homes/images/lbg3.jpg');
			background-repeat:no-repeat;
		}

	</style>
<div class='login'>
@section('youpian')
@endsection

@section('head-top')
@endsection

@section('return')
<p class="log">
    <a href="/">
        首页
    </a>
    <span>
    </span>
    <a href="/home/register">
        注册
    </a>
</p> 
@endsection
@section('content')
	
	<div class="container">
	<div class="register">
		
		<h2>登录</h2>
		  	  <form action='/home/login' method="post"> 
			  	  @if (count($errors) > 0)
	      			<div class="alert alert-success">
	              @foreach ($errors->all() as $error)
	              	<li class='list-unstyled'>
	                	<img src="/admins/images/info.png" alt="">&nbsp;
	                {{ $error }}</li>
	              @endforeach
	      			</div>
	 			  @endif
				 <div class="col-md-7 col-md-offset-3 register-top-grid" style='margin-bottom:70px'>
					<ul class="list-unstyled list-inline mation" >
						<li><span>昵&nbsp; &nbsp; 称</span></li>
						<li><input type="text" name='username'></li>
						<li><span></span></li>
						
					</ul>
					<ul class="list-unstyled list-inline mation">
						<li><span>密&nbsp; &nbsp; 码</span></li>
						<li><input type="password" name='password'></li>
						<li><span></span></li>
					</ul>

					 <div class="clearfix"> </div>
					 	<ul class='list-unstyled list-inline'>
							<li>
							 	<div>
							  	 	<a class="news-letter" href="/home/forget" style='text-decoration:none'>
								 		忘记密码 
							   		</a>
							 	</div>
							 </li>

							 <li style='margin-left:106px'>
							 	<div class="register-but">
							 		{{csrf_field()}}
							 		<button class='btn btn-info zhuce' style='width:100px'>登录</button>
									<div class="clearfix"> </div>
								</div>
							</li>
							 
						</ul>
		   		</div>
		    </form>
	</div>
	@endsection
</div>